<div class="view-news">
    <div class="n-title"><?php echo CHtml::link(CHtml::encode($data->title), array('view', 'id' => $data->id)); ?></div>
    <div class="n-cont"><?php echo CHtml::encode($data->content); ?></div>
    <div class="n-info">
        <b>阅读:</b><?php echo $data->hits; ?>
        <b>更新时间:</b><?php echo date('Y-m-d H:i:s', $data->update_time); ?>
        <b>作者:</b><?php echo $data->author->username; ?>
    </div>
    <div class="n-tag"><b>标签:</b><?php echo implode(', ', $data->tagLinks); ?></div>
</div>